


NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;
function moveLayers() {
	if (gotlayers) {
		if (NS4) {
			screenWidth = window.innerWidth;
			document.layers['LogLevel'].left = 700;
			document.layers['LogLevel'].top = 250;
			screenWidth = window.innerWidth;
			document.layers['MaxLogFileSize'].left = 700;
			document.layers['MaxLogFileSize'].top = 250;
			screenWidth = window.innerWidth;
			document.layers['MessageDateFormat'].left = 700;
			document.layers['MessageDateFormat'].top = 250;
			screenWidth = window.innerWidth;
			document.layers['ListDateFormat'].left = 700;
			document.layers['ListDateFormat'].top = 250;
			screenWidth = window.innerWidth;
			document.layers['RedirectWait'].left = 700;
			document.layers['RedirectWait'].top = 250;
			screenWidth = window.innerWidth;
			document.layers['EnableReplaceFrom'].left = 700;
			document.layers['EnableReplaceFrom'].top = 250;
			screenWidth = window.innerWidth;
			document.layers['MaxInlineAttachSize'].left = 700;
			document.layers['MaxInlineAttachSize'].top = 250;
			screenWidth = window.innerWidth;
			document.layers['CaseSensitivePasswords'].left = 700;
			document.layers['CaseSensitivePasswords'].top = 250;
			screenWidth = window.innerWidth;
			document.layers['SendReadConfirmations'].left = 700;
			document.layers['SendReadConfirmations'].top = 250;
			screenWidth = window.innerWidth;
			document.layers['GlobalAddrBookSortOrder'].left = 700;
			document.layers['GlobalAddrBookSortOrder'].top = 250;
			screenWidth = window.innerWidth;
			document.layers['VerboseSentConfirmation'].left = 700;
			document.layers['VerboseSentConfirmation'].top = 250;
			screenWidth = window.innerWidth;
			document.layers['AddRemoveKeys'].left = 700;
			document.layers['AddRemoveKeys'].top = 250;
		} else {
			screenWidth = document.body.clientWidth + 18;
			document.all['LogLevel'].style.pixelLeft = 700;
			document.all['LogLevel'].style.pixelTop = 200;
			screenWidth = document.body.clientWidth + 18;
			document.all['MaxLogFileSize'].style.pixelLeft = 700;
			document.all['MaxLogFileSize'].style.pixelTop = 200;
			screenWidth = document.body.clientWidth + 18;
			document.all['MessageDateFormat'].style.pixelLeft = 700;
			document.all['MessageDateFormat'].style.pixelTop = 200;
			screenWidth = document.body.clientWidth + 18;
			document.all['ListDateFormat'].style.pixelLeft = 700;
			document.all['ListDateFormat'].style.pixelTop = 200;
			screenWidth = document.body.clientWidth + 18;
			document.all['RedirectWait'].style.pixelLeft = 700;
			document.all['RedirectWait'].style.pixelTop = 200;
			screenWidth = document.body.clientWidth + 18;
			document.all['EnableReplaceFrom'].style.pixelLeft = 700;
			document.all['EnableReplaceFrom'].style.pixelTop = 200;
			screenWidth = document.body.clientWidth + 18;
			document.all['MaxInlineAttachSize'].style.pixelLeft = 700;
			document.all['MaxInlineAttachSize'].style.pixelTop = 200;
			screenWidth = document.body.clientWidth + 18;
			document.all['CaseSensitivePasswords'].style.pixelLeft = 700;
			document.all['CaseSensitivePasswords'].style.pixelTop = 200;
			screenWidth = document.body.clientWidth + 18;
			document.all['SendReadConfirmations'].style.pixelLeft = 700;
			document.all['SendReadConfirmations'].style.pixelTop = 200;
			screenWidth = document.body.clientWidth + 18;
			document.all['GlobalAddrBookSortOrder'].style.pixelLeft = 700;
			document.all['GlobalAddrBookSortOrder'].style.pixelTop = 200;
			screenWidth = document.body.clientWidth + 18;
			document.all['VerboseSentConfirmation'].style.pixelLeft = 700;
			document.all['VerboseSentConfirmation'].style.pixelTop = 200;
			screenWidth = document.body.clientWidth + 18;
			document.all['AddRemoveKeys'].style.pixelLeft = 700;
			document.all['AddRemoveKeys'].style.pixelTop = 200;
		}
	}
}

function popUp(menuName,on) {
	if (gotlayers) {
		if (on) {
			moveLayers();
			if (NS4) {
				document.layers[menuName].visibility = "show";
			} else {
				document.all[menuName].style.visibility = "visible";
			}
		} else {
			if (NS4) {
				document.layers[menuName].visibility = "hide";
			} else {
				document.all[menuName].style.visibility = "hidden";
			}
		}
	}
}